package com.wp.www.repository;

import com.wp.www.entity.storage.Storage;
import org.apache.ibatis.annotations.Param;

public interface StorageMapper {
    /**
     * 修改库存量
     * */
    Integer reduceStorage(@Param("commodityCode") String commodityCode, @Param("count") Integer count);

    /**
     * 根据商品码查询商品信息
     * */
    Storage findStorageByCommodityCode(@Param("commodityCode") String commodityCode);
}
